<?phpdefine ('HOSTNAME', 'http://www.spreadshirt.net/');$path = 'services.php';$url = HOSTNAME.$path;$session = curl_init($url);$postvars = file_get_contents("php://input");/*########## Logging ##############$entryDelim = "\n\n______________________________________\n\n";$logEntry = $postvars . $entryDelim;$fp = fopen("postedVars.txt", "a");fwrite( $fp, $logEntry);fclose($fp);//####### End of Logging ##########*/curl_setopt ($session, CURLOPT_POST, true);curl_setopt ($session, CURLOPT_POSTFIELDS, $postvars);curl_setopt($session, CURLOPT_HEADER, false);curl_setopt($session, CURLOPT_RETURNTRANSFER, true);$xml=curl_exec($session);header("Content-Type: text/xml");echo $xml;//curl_setopt($session, CURLOPT_FILE, $fp);curl_close($session);?>